package User;

import Book.BookList;
import Operation.ExitSystem;
import Operation.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-04-13
 * Time: 12:51
 */
public abstract class User {
    public String name;
    protected IOperation[] iOperation;

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();
    public void doIOperation(int choice, BookList book){
         this.iOperation[choice].work(book);
    }
}
